chrome extension get current tab url

129

chrome extension get current tab url -

chrome.tabs.query({currentWindow: true, active: true}, function(tabs){
    console.log(tabs[0].url);
});

Comments

Submit
0 Comments